package edu.sctu.practice.class02.yangyuran.test19;

/**
 * Created by Administrator on 2015/10/15.
 */
public class Triangle extends Graphical {

    public double area() {

        double area;
        length = 8.0;
        width = 2.0;
        return area = 0.5 * length * width;
    }


    public static void main(String[] args) {

        Round round = new Round();
        double i = round.area();
        System.out.println("三角形面积为：" + i);
    }
}
